A Certifiable Formal Semantics of C

نویسندگان

  • Maksym Bortin
  • Christoph Lüth
  • Dennis Walter
چکیده

This paper presents a formalisation of a subset of the C programming language, and a corresponding verification calculus, in the theorem prover Isabelle. There are of course many and varied approaches to the verification of safety-critical programs. The characteristics of our approach stem from the application domain: the certification of control software for autonomous mobile robots [3]. This means that firstly, our verification techniques need to stand up to certification by an external agency such as the TÜV; secondly, we can restrict ourselves to a subset of C tailored for safety-critical applications, such as MISRA C [5] (in fact, this is even required by the relevant standard IEC 61508); and thirdly, the algorithms to be verified are comparatively sophisticated for a safety function, involving the calculation of safety zones from a model of the braking behaviour of the robot. Our verification is based on a formalisation of a subset of MISRA C in the theorem prover Isabelle in typed higher-order logic (HOL). Using Isabelle is crucial to our approach: based on the C semantics, we can build a proof calculus and verify its correctness inside Isabelle. Thus, the validation of our verification can focus on the semantics of C as presented here. Further, using Isabelle allows us to use higher-order logic to express our specifications, so we are not tied to a specific specification language.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A short introduction to two approaches in formal verification of security protocols: model checking and theorem proving

In this paper, we shortly review two formal approaches in verification of security protocols; model checking and theorem proving. Model checking is based on studying the behavior of protocols via generating all different behaviors of a protocol and checking whether the desired goals are satisfied in all instances or not. We investigate Scyther operational semantics as n example of this...

متن کامل

A third type of job search behavior: the use of the formal-informal joint channel in matching individual qualifications with hiring requirements in urban China

This study highlights the necessity of distinguishing the use of the formal-informal joint channel from the sole reliance on either the formal or informal job search channel. I first used interview data collected in three Chinese cities as well as ethnographic case studies in the existing literature to illustrate a typology of the distribution of job search behavior, by focusing on the match be...

متن کامل

Modeling and Evaluation of Stochastic Discrete-Event Systems with RayLang Formalism

In recent years, formal methods have been used as an important tool for performance evaluation and verification of a wide range of systems. In the view points of engineers and practitioners, however, there are still some major difficulties in using formal methods. In this paper, we introduce a new formal modeling language to fill the gaps between object-oriented programming languages (OOPLs) us...

متن کامل

Modeling and Evaluation of Stochastic Discrete-Event Systems with RayLang Formalism

In recent years, formal methods have been used as an important tool for performance evaluation and verification of a wide range of systems. In the view points of engineers and practitioners, however, there are still some major difficulties in using formal methods. In this paper, we introduce a new formal modeling language to fill the gaps between object-oriented programming languages (OOPLs) us...

متن کامل

Selling with Evidence

We consider a seller who can propose any selling mechanism to a buyer. The seller’s reservation value and the buyer’s valuation can depend both on the buyer’s privatelyknown taste and on product characteristics privately-known to the seller. Product information is voluntarily and costlessly certifiable by the seller. We characterize all feasible allocations under any certifiability structure an...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2009